﻿
namespace Open.Product.Domain.Dto
{

    public class ProductStandardInput 
    {

        public long Id { get; set; }

        /// <summary>
        /// 单位名称
        /// </summary>
        public string StandardName { get; set; }

        /// <summary>
        /// 单位换算关系
        /// </summary>
        public decimal? StandardRelation { get; set; }

        /// <summary>
        /// 零售价
        /// </summary>
        public decimal RetailPrice { get; set; }

        /// <summary>
        /// 会员价
        /// </summary>
        public decimal? MemberPrice { get; set; }

        /// <summary>
        /// 采购价
        /// </summary>
        public decimal? BuyingPrice { get; set; }

        /// <summary>
        /// 批发价
        /// </summary>
        public decimal? WholesalePrice { get; set; }
        /// <summary>
        /// 配送价
        /// </summary>
        public decimal? DeliveryPrice { get; set; }

        /// <summary>
        /// 会员价2
        /// </summary>
        public decimal? MemberPrice2 { get; set; }

        /// <summary>
        /// 会员价3
        /// </summary>
        public decimal? MemberPrice3 { get; set; }

        /// <summary>
        /// 会员价4
        /// </summary>
        public decimal? MemberPrice4 { get; set; }

        /// <summary>
        /// 会员价5
        /// </summary>
        public decimal? MemberPrice5 { get; set; }

        /// <summary>
        /// 规格是否隐藏
        /// </summary>
        public bool IsHide { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int SerialNumber { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public long Sort { get; set; }
        /// <summary>
        /// 启用 = true
        /// 禁用 = false
        /// </summary>
        public bool IsActive { get; set; }

        /// <summary>
        /// 行号
        /// </summary>
        public int RowIndex { get; set; }

        /// <summary>
        /// 启用
        /// </summary>
        public void Enable()
        {
            this.IsActive = true;
        }

        /// <summary>
        /// 禁用
        /// </summary>
        public void Disable()
        {
            this.IsActive = false;
        }

        /// <summary>
        /// 条码信息
        /// </summary>
        public List<BseProductStandardBarCodeInput> baseProductStandardBarCodeList { get; set; }
        /// <summary>
        /// component
        /// </summary>
        public List<BseProductComponentInput> baseProductComponentList { get; set; }
        /// <summary>
        /// parent
        /// </summary>
        public BseProductParentInput baseProductParent { get; set; }
    }
}